package com.itheima.appserver.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.dubbo.interfaces.TimeLineApi;
import org.springframework.stereotype.Service;

/**
 * 好友时间线表服务
 */
@Service
public class TimeLineService {
    @Reference
    private TimeLineApi timeLineApi;

    /**
     * 保存圈子ID到好友的时间线表中
     *
     * @param userId
     * @param id
     */
    public void saveTimeLine(Long userId, String id) {
        timeLineApi.saveToFriendTimeLine(id, userId);
    }
}
